
import com.eep.common.Customer;
import com.eep.common.Status;
import com.eep.inventory.InventoryItem;
import com.eep.inventory.InventoryService;
import com.eep.inventory.InventoryServiceDelegate;
import com.eep.inventory.InventoryType;
import com.eep.order.OrderDetailed;
import com.eep.order.OrderLineItem;
import com.eep.order.OrderService;
import com.eep.order.OrderServiceImpl;
import com.eep.security.Session;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.lang.String;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.List;
import javax.swing.DefaultListModel;

/******************************************************************************
 * File:OrderAppUI.java
 * Course: 17655
 * Project: Assignment 2
 * Copyright: Copyright (c) 2009 Carnegie Mellon University
 * Versions:
 *	1.0 November 2009 - Initial rewrite of original assignment 2 (ajl).
 *
 * This class defines a GUI application that allows EEP order takers to enter
 * phone orders into the database.
 *
 ******************************************************************************/
/**
 *
 * @author lattanze
 */
public class OrderAppUI extends javax.swing.JFrame {

    String versionID = "v2.10.10";
    private double totalCost;
    private Session session;

    /** Creates new form OrderAppUI */
    public OrderAppUI(Session session) {
        initComponents();
        jLabel1.setText("Order Management Application " + versionID);
        welcomeLabel.setText(String.format("Welcome %s", session.getUsername()));
        this.session = session;
    }

    public double getTotalCost() {
        return totalCost;
    }

    public void setTotalCost(double totalCost) {
        this.totalCost = totalCost;
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        treesButton = new javax.swing.JButton();
        seedsButton = new javax.swing.JButton();
        shrubsButton = new javax.swing.JButton();
        jLabel4 = new javax.swing.JLabel();
        firstNameTextField = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        lastNameTextField = new javax.swing.JTextField();
        phoneTextField = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        addToOrderButton = new javax.swing.JButton();
        jLabel9 = new javax.swing.JLabel();
        orderTotalCostTextField = new javax.swing.JTextField();
        submitOrderButton = new javax.swing.JButton();
        jLabel10 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jScrollPane3 = new javax.swing.JScrollPane();
        messagesTextArea = new javax.swing.JTextArea();
        jLabel3 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        addressTextArea = new javax.swing.JTextArea();
        jScrollPane5 = new javax.swing.JScrollPane();
        inventoryList = new javax.swing.JList();
        jScrollPane1 = new javax.swing.JScrollPane();
        itemsSelectedList = new javax.swing.JList();
        addToOrderButton1 = new javax.swing.JButton();
        welcomeLabel = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel1.setText("Order Management Application");

        treesButton.setText("Trees");
        treesButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                treesButtonActionPerformed(evt);
            }
        });

        seedsButton.setText("Seeds");
        seedsButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                seedsButtonActionPerformed(evt);
            }
        });

        shrubsButton.setText("Shrubs");
        shrubsButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                shrubsButtonActionPerformed(evt);
            }
        });

        jLabel4.setText("Press Button For Inventory Display");

        jLabel6.setText("First Name");

        jLabel7.setText("Last Name");

        jLabel8.setText("Phone #");

        jLabel5.setText("Items Selected:");

        addToOrderButton.setText("Add to Order");
        addToOrderButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                addToOrderButtonActionPerformed(evt);
            }
        });

        jLabel9.setText("Order Total Cost:");

        orderTotalCostTextField.setText("$0");

        submitOrderButton.setText("Submit Order");
        submitOrderButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                submitOrderButtonActionPerformed(evt);
            }
        });

        jLabel10.setText("Product ID : Product Description : Price : Items in Stock");

        jLabel2.setText("Messages:");

        messagesTextArea.setColumns(20);
        messagesTextArea.setRows(5);
        jScrollPane3.setViewportView(messagesTextArea);

        jLabel3.setText("Customer Information");

        jLabel12.setText("Address");

        addressTextArea.setColumns(20);
        addressTextArea.setRows(4);
        jScrollPane4.setViewportView(addressTextArea);

        inventoryList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane5.setViewportView(inventoryList);

        itemsSelectedList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane1.setViewportView(itemsSelectedList);

        addToOrderButton1.setText("Remove from Order");
        addToOrderButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                addToOrderButton1ActionPerformed(evt);
            }
        });

        welcomeLabel.setText("Welcome");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lastNameTextField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel12, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(firstNameTextField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(phoneTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(jLabel10))
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(layout.createSequentialGroup()
                                                .addComponent(treesButton)
                                                .addGap(32, 32, 32)
                                                .addComponent(seedsButton))
                                            .addComponent(jLabel4))
                                        .addGap(24, 24, 24)
                                        .addComponent(shrubsButton))
                                    .addGroup(layout.createSequentialGroup()
                                        .addGap(10, 10, 10)
                                        .addComponent(jLabel5))
                                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE)
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                        .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(orderTotalCostTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE)
                                    .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(addToOrderButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 128, Short.MAX_VALUE)
                                    .addComponent(submitOrderButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 128, Short.MAX_VALUE)
                                    .addComponent(addToOrderButton1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(189, 189, 189)
                        .addComponent(jLabel2))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(316, 316, 316)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(welcomeLabel)
                            .addComponent(jLabel1))))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jLabel1)
                .addGap(5, 5, 5)
                .addComponent(welcomeLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(7, 7, 7)
                        .addComponent(jLabel3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel6))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(treesButton)
                            .addComponent(seedsButton)
                            .addComponent(shrubsButton))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel10)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 102, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(firstNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 12, Short.MAX_VALUE)
                        .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(lastNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel12))
                    .addComponent(addToOrderButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel8)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(phoneTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel5)
                        .addGap(9, 9, 9)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(addToOrderButton1)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(11, 11, 11)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(orderTotalCostTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel9)
                    .addComponent(submitOrderButton))
                .addGap(9, 9, 9)
                .addComponent(jLabel2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void treesButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_treesButtonActionPerformed
        // Uses the Inventory Service Business Delegate to load the
        // inventory item data for trees.
        InventoryService invService = new InventoryServiceDelegate().getInventoryService();
        List<InventoryItem> iList = invService.getInventory(InventoryType.Trees);
        DefaultListModel jList = new DefaultListModel();
        inventoryList.setModel(jList);
        for (InventoryItem i : iList) {
            jList.addElement(i);
        }
    }//GEN-LAST:event_treesButtonActionPerformed

    private void addToOrderButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addToOrderButtonActionPerformed
        InventoryItem inventorySelection = null;

        // this is the selected line of text
        if (inventoryList.getSelectedIndex() < 0) {
            return;
        }

        inventorySelection = (InventoryItem) inventoryList.getSelectedValue();
        DefaultListModel jList = null;
        if (itemsSelectedList.getModel() == null || itemsSelectedList.getModel().getSize() == 0) {
            jList = new DefaultListModel();
            itemsSelectedList.setModel(jList);
        } else {
            jList = DefaultListModel.class.cast(itemsSelectedList.getModel());
        }
        jList.addElement(inventorySelection);
        setTotalCost(getTotalCost() + inventorySelection.getCost());
        orderTotalCostTextField.setText("$" + getTotalCost());
    }//GEN-LAST:event_addToOrderButtonActionPerformed

    private void submitOrderButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_submitOrderButtonActionPerformed
        boolean connectError = false;   // Error flag

        // Check to make sure there is a first name, last name, address and phone
        if (!((firstNameTextField.getText().length() > 0) && (lastNameTextField.getText().length() > 0)
                && (phoneTextField.getText().length() > 0)
                && (addressTextArea.getText().length() > 0))) {
            String errString = "\nMissing customer information!!!\n";
            messagesTextArea.append(errString);
            connectError = true;
        }

        // Check to make sure there is a first name, last name, address and phone
        if (itemsSelectedList.getModel().getSize() == 0) {
            String errString = "Order must contain at least one inventory item customer information!!!\n";
            messagesTextArea.append(errString);
            connectError = true;
        }

        if (!connectError) {
            Customer customer = new Customer();
            customer.setFirstName(firstNameTextField.getText());
            customer.setLastName(lastNameTextField.getText());
            customer.setPhoneNumber(phoneTextField.getText());
            customer.setAddress(addressTextArea.getText());

            OrderDetailed order = new OrderDetailed();
            order.setCustomer(customer);
            order.setCost(getTotalCost());

            // Now we create a table that contains the itemized list
            // of stuff that is associated with the order
            for (int i = 0; i < itemsSelectedList.getModel().getSize(); i++) {
                InventoryItem inventoryItem = InventoryItem.class.cast(itemsSelectedList.getModel().getElementAt(i));
                String productID = inventoryItem.getProductId();
                String description = inventoryItem.getDescription();
                double perUnitCost = inventoryItem.getCost();

                OrderLineItem item = new OrderLineItem();
                item.setDescription(description);
                item.setProductId(productID);
                item.setItemPrice(perUnitCost);
                order.addOrderLineItem(item);
            }

            OrderService orderService = new OrderServiceImpl();
            Status status = orderService.submitOrder(session, order);
            String msgString = "";
            if (!status.isSuccess()) {
                msgString = "\nORDER FAILED FOR: " + firstNameTextField.getText() + " " + lastNameTextField.getText();
                msgString += "\n" + status.getMessage();
            } else {
                msgString = "\nORDER SUBMITTED FOR: " + firstNameTextField.getText() + " " + lastNameTextField.getText();
            }
            messagesTextArea.setText(msgString);

            // Clean up the display
            inventoryList.setListData(new Object[0]);
            itemsSelectedList.setListData(new Object[0]);
            addressTextArea.setText("");
            firstNameTextField.setText("");
            lastNameTextField.setText("");
            phoneTextField.setText("");
            orderTotalCostTextField.setText("$0");
            setTotalCost(0);

        }

    }//GEN-LAST:event_submitOrderButtonActionPerformed

    private void seedsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_seedsButtonActionPerformed
        // Uses the Inventory Service Business Delegate to load the
        // inventory item data for trees.
        InventoryService invService = new InventoryServiceDelegate().getInventoryService();
        List<InventoryItem> iList = invService.getInventory(InventoryType.Seeds);
        DefaultListModel jList = new DefaultListModel();
        inventoryList.setModel(jList);
        for (InventoryItem i : iList) {
            jList.addElement(i);
        }
    }//GEN-LAST:event_seedsButtonActionPerformed

    private void shrubsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_shrubsButtonActionPerformed
        // Uses the Inventory Service Business Delegate to load the
        // inventory item data for trees.
        InventoryService invService = new InventoryServiceDelegate().getInventoryService();
        List<InventoryItem> iList = invService.getInventory(InventoryType.Shrubs);
        DefaultListModel jList = new DefaultListModel();
        inventoryList.setModel(jList);
        for (InventoryItem i : iList) {
            jList.addElement(i);
        }
    }//GEN-LAST:event_shrubsButtonActionPerformed

    private void addToOrderButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addToOrderButton1ActionPerformed
        InventoryItem inventorySelection = null;

        // this is the selected line of text
        if (itemsSelectedList.getSelectedIndex() < 0) {
            return;
        }

        inventorySelection = (InventoryItem) itemsSelectedList.getSelectedValue();
        DefaultListModel jList = null;
        if (itemsSelectedList.getModel() == null || itemsSelectedList.getModel().getSize() == 0) {
            jList = new DefaultListModel();
            itemsSelectedList.setModel(jList);
        } else {
            jList = DefaultListModel.class.cast(itemsSelectedList.getModel());
        }
        jList.removeElement(inventorySelection);
        setTotalCost(getTotalCost() - inventorySelection.getCost());
        orderTotalCostTextField.setText("$" + getTotalCost());
    }//GEN-LAST:event_addToOrderButton1ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {

        final LoginFrame loginFrame = new LoginFrame();
        try {
            loginFrame.setVisible(true);
            loginFrame.addWindowListener(new WindowAdapter() {

                @Override
                public void windowClosed(WindowEvent e) {
                    if (loginFrame.isAuthorized()) {
                        Thread thread = new Thread(new Runnable() {

                            public void run() {
                                new OrderAppUI(loginFrame.getSession()).setVisible(true);
                            }
                        });
                        thread.start();
                    }
                }
            });

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton addToOrderButton;
    private javax.swing.JButton addToOrderButton1;
    private javax.swing.JTextArea addressTextArea;
    private javax.swing.JTextField firstNameTextField;
    private javax.swing.JList inventoryList;
    private javax.swing.JList itemsSelectedList;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JTextField lastNameTextField;
    private javax.swing.JTextArea messagesTextArea;
    private javax.swing.JTextField orderTotalCostTextField;
    private javax.swing.JTextField phoneTextField;
    private javax.swing.JButton seedsButton;
    private javax.swing.JButton shrubsButton;
    private javax.swing.JButton submitOrderButton;
    private javax.swing.JButton treesButton;
    private javax.swing.JLabel welcomeLabel;
    // End of variables declaration//GEN-END:variables
}
